﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Globalization;
using System.Xml;

namespace GraphicalSVN.GraphicSource
{
    public class Converter
    {
        public DateTime ConvertXmlNodeToDate(XmlNode xmln)
        {
            DateTimeFormatInfo dtfi = new DateTimeFormatInfo();
            dtfi.ShortDatePattern = "yyyy-MM-ddTHH:mm:ss.ssssssZ";
            dtfi.DateSeparator = "-";
            return Convert.ToDateTime(xmln.InnerText, dtfi);
        }
    }
}
